package arithmetic;
//因式分解
import java.util.Scanner;

public class Arithmetic7 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();

        for (int i = 2; i <=Math.sqrt(a) ; ) {

            if (a%i==0){
                a /=i;
                System.out.print(i+"*");
            }else {
                i++;
            }

        }
        System.out.println(a);
    }
}
